<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>订单修改页面</title>
    <!--引入layui-->
    <link rel="stylesheet" th:href="@{/assets/lib/layui/css/layui.css}">
    <script th:src="@{/assets/lib/layui/layui.js}"></script>
    <!--自定义格式-->
    <script th:src="@{/assets/sys/order/edit.js}"></script>
    <link rel="stylesheet" th:href="@{/assets/sys/order/edit.css}"/>

    <!--定义上下文路径-->
    <script th:inline="javascript">
        let ctx = /*[[@{/}]]*/"";//上下文路径
        if (ctx.endsWith("/")) {
            ctx = ctx.substring(0, ctx.length - 1);
        }
        const error = /*[[${error}]]*/"";
        const order =/*[[${order}]]*/{};
    </script>

</head>
<body>
<form id="edit-form" class="layui-form" lay-filter="edit-form">
    <div class="layui-form-item">
        <label class="layui-form-label">订单号</label>
        <div class="layui-input-block">
            <input name="orderNo" type="text" disabled class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员账号</label>
        <div class="layui-input-block">
            <input name="account" type="text" disabled class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">收货人姓名</label>
        <div class="layui-input-block">
            <input name="receiverName" type="text" disabled class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">收货地址</label>
        <div class="layui-input-block">
            <textarea name="detail" disabled class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">收货人电话</label>
        <div class="layui-input-block">
            <input name="receiverPhone" type="text" lay-verify="required|phone" lay-reqtext="电话格式不正确"
                   placeholder="请输入电话" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">总价</label>
        <div class="layui-input-block">
            <input name="totalPay" type="text" lay-verify="positiveInteger" lay-reqtext="价格不正确"
                   placeholder="请输入总价" autocomplete="off" class="layui-input">
        </div>
    </div>
    <button type="button" class="layui-btn layui-btn-primary layui-border-green addr-change">
        点此修改收货地址</button>
    <div class="layui-form-item layui-form-text addr-info">
        <!--            省市区街道-->
        <div class="layui-input-block">
            <select lay-search=""  lay-filter="prov" class="prov">
                <option value="">请选择或搜索省</option>
                <!--                js渲染-->
            </select>

            <select lay-search=""  lay-filter="city" class="city">
                <option value="">请选择或搜索城市</option>
                <option disabled>请先选择省份</option>

            </select>
        </div>

        <div class="layui-input-block">
            <select lay-search=""  lay-filter="dist" class="dist">
                <option value="">请选择或搜索区县</option>
                <option disabled>请先选择城市</option>

            </select>
            <select  lay-filter="str" class="str" name="streetId">
                <option value="">请选择或搜索街道</option>
                <option disabled>请先选择区县</option>

            </select>
        </div>
        <div class="layui-input-block">
            <textarea name="ndetail" placeholder="请输入详细地址" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="note" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>

</form>

</body>
</html>